package com.meilai.project.dto.system;

import lombok.Data;

import java.util.Map;

/**
 * @author 张驰
 * @date 2022/4/25 17:35
 */
@Data
public class MessageCenterRouterProps {
    private Integer type; //1:名称跳转，2：路径跳转
    private String path; //路径
    private String name; //名称
    private Map<String, String> variables; //路径参数
    private Map<String, String> params;
    private Map<String, String> querys;

    public MessageCenterRouterProps(String name, Map<String, String> params) {
        this.type = 1;
        this.name = name;
        this.params = params;
    }

    public MessageCenterRouterProps(String path, Map<String, String> variables, Map<String, String> querys) {
        this.type = 2;
        this.path = path;
        this.variables = variables;
        this.querys = querys;
    }
}
